package com.example.spring.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Administrator on 2017-4-19.
 */

@FeignClient("consume-server1")
public interface ServiceClient {

    @RequestMapping(method = RequestMethod.GET,path = "add")
    int add();
}
